package com.flame.shapeville.component.task1.shape3D;

import javafx.scene.paint.Color;
import javafx.scene.shape.Cylinder;

/**
 * Represents a cylinder used in Task 1.
 * <p>
 * This class renders a 3D cylinder with customizable height and radius.
 *
 * @author Flame Dev Team
 * @version 1.0
 * @since 2025-05-12
 */
public class JfCylinder extends JfShape3D {

    /**
     * Constructs a new cylinder with the specified size.
     *
     * @param size the diameter of the cylinder
     */
    public JfCylinder(double size) {
        super(size);
        shape = new Cylinder(size / 2, size * 0.8);
        initBaseParams(Color.CYAN);
    }
}
